﻿import java.util.Scanner; 

public class code067 {
	public static void main(String[] argse){
		int score;
		int sum =0;
		double avg;
		boolean isNegative =false;
		Scanner input= new Scanner(System.in);
		System.out.println("输入学生姓名");
		String name = input.next();
		for(int i=0;i<5;i++){
			System.out.println("请输入第"+(i+1)+"门课的成绩:");
			score = input.nextInt();
			if(score<0){
				isNegative = true;
				break;
			}
			sum=sum+score;
		}avg=sum/5;
		System.out.println(name+"的平均分四："+avg);
		
	}
}